<?php
$this->headTitle($this->translate('Group index'));
$this->headLink()
    ->appendStylesheet($this->STATIC_URL. '/themes/file.css');
$this->headStyle('
div.filelist dl dt a {
	background-image:url("'. $this->STATIC_URL .'/themes/icons/directory.png");
}

//style
#family{width:100%;}
#zend_form{position:relative;}
#tableclass{ 
    background: none repeat scroll 0 0 #FEFEFE;
    border: 1px solid #EFEFEF;
    line-height: 20px;
    padding: 2px 10px;
    position: absolute;
    right: 0;
    width: 180px;
    z-index: 999;
}
#tableclass a{
    float:left;
    width: 180px;
    display: none;
}
');
$this->headScript()
    ->appendScript('
$(function(){
    $("#tableclass").mouseover(function(){
        $(this).find("a").show();
    });
    $("#tableclass").mouseout(function(){
        $(this).find("a").hide();
    });
});
');
?>

<dl id="zend_form">
<dt>
<div id="tableclass" class="right-bar">
    <span class="index">查看人口信息统计报表</span>
    <a href="<?php echo $this->url(array('controller'=>'table','action'=> "month",'vid'=> $this->village->vid))?>">月度出生、节育情况报表</a>
    <a href="<?php echo $this->url(array('controller'=>'table','action'=> "quarter",'vid'=> $this->village->vid))?>">季度人口一般情况报表</a>
    <a href="<?php echo $this->url(array('controller'=>'table','action'=> "year",'vid'=> $this->village->vid))?>">年度人口和出生情况报表</a>
</div>
<h2>
	<span><?php echo $this->translate('Group index')?></span>
	<a href="<?php echo $this->url(array(
        'controller'=> 'family',
		'action'=> 'create',
		'vid'=> $this->village->vid
		))?>"><?php echo $this->translate('Create family')?></a>
</h2>
</dt>
</dl>


<dl>
<dt>&nbsp;</dt>
<dd>
<fieldset>
    <legend><?php echo $this->village->name?></legend>
    <div class="filelist">
<?php if (count($this->entries)): ?>
<?php foreach ($this->entries as $group): ?>
    <dl>
        <dt><a href="<?php echo $this->url(array(
            'controller'=> 'family',
            'action'=> 'floor',
            'aid'=> $group->aid));?>"></a></dt>
        <dd><?php echo $group->name ?></dd>
    </dl>
<?php endforeach;?>
<?php endif;?>
    </div>
</fieldset>

</dd>
</dl>